/*
 SGEndGameViewController.m
 Date Created: March 26, 2010
 
 Authors: Frank Lau <flaua@sfu.ca> 
          Karanvir Gill <viper1029@gmail.com>
 
 Copyright (C) 2010 Green-Power
 
 URL: http://code.google.com/p/green-power
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 3 of the License, or
 (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 $Id$
 
 */

#import <UIKit/UIKit.h>


@interface SGEndGameViewController : UIViewController {

  IBOutlet UILabel *currentLevelLabel;            //shows the last level that the player managed to complete in the game 
  IBOutlet UILabel *levelAccuracyLabel;           //shows the sorting accuracy of the last level 
  IBOutlet UILabel *totalProcessedLabel;          //shows the total number of items that appeared in the entire game
	IBOutlet UILabel *totalCorrectlySortedLabel;    //shows the total number of items correctly sorted
  IBOutlet UILabel *totalScoreLabel;              //shows the total score earned in the game
	IBOutlet UILabel *levelScoreLabel;              //shows the score earned in the last level of the game
  IBOutlet UILabel *gameAccuracyLabel;            //shows the overall game accuracy
  
  
  NSUInteger currentLevelAtEndGame;
  NSUInteger totalProcessedAtEndGame;
  NSUInteger totalCorrectlySortedAtEndGame;
  NSUInteger totalScoreAtEndGame;
  NSUInteger levelScoreAtEndGame;
  float gameAccuracyAtEndGame;
  float levelAccuracyAtEndGame;
}

@property (nonatomic,retain) IBOutlet UILabel *currentLevelLabel;
@property (nonatomic,retain) IBOutlet UILabel *levelAccuracyLabel;
@property (nonatomic,retain) IBOutlet UILabel *totalProcessedLabel;
@property (nonatomic,retain) IBOutlet UILabel *totalCorrectlySortedLabel;
@property (nonatomic,retain)IBOutlet UILabel *totalScoreLabel; 
@property (nonatomic,retain)	IBOutlet UILabel *levelScoreLabel;


- (SGEndGameViewController*)initWithCurrLevel:(NSUInteger)currLevel  
                            withLevelAccuracy:(float)levelAccuracy 
                            withTotalProcessed:(NSUInteger)totalProcessed  
                            withTotalCorrectlySorted:(NSUInteger)totalCorrectlySorted 
                            withTotalScore:(NSUInteger)totalScore 
                            withLevelScore:(NSUInteger)levelScore;

/**
 *Goes to main menu after player hits the main menu button
 */
- (IBAction)goToMainMenu:(id)sender;

@end
